package com.hzy.fivepalace.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 管理后台服务启动类
 *
 * @author gejian
 */
//(scanBasePackages = { "com.hzy.fivepalace.db", "com.hzy.fivepalace.common", "com.hzy.fivepalace.admin" })
@SpringBootApplication
@ComponentScan(basePackages ={"com.hzy.fivepalace.*",})
@MapperScan({ "com.hzy.fivepalace.db.dao", "com.hzy.fivepalace.db.dao.ex" })
@EnableTransactionManagement
@ServletComponentScan
@EnableScheduling
public class AdminApplication {

	public static void main(String[] args) {
//		SpringApplication.run(AdminApplication.class, args);

		SpringApplication application = new SpringApplication(AdminApplication.class);
		ConfigurableApplicationContext context = application.run(args);

		System.out.println("(♥◠‿◠)ﾉﾞ  嗨美汇-后台管理端启动成功   ლ(´ڡ`ლ)ﾞ \n");
	}
}
